#include "uBroadcast_B1.h"

#include <stdio.h>

int main(void) {
	uMessage msg;
	ub_B1 * conn = ub_b1_connect("/dev/ttyUSB0");

	// Wait for message

	while (ub_b1_recv(conn, &msg) == 0) {
		ub_debug(&msg);
	}
	printf("Received bad message, exiting !\n");

	ub_b1_disconnect(conn);
}
